package com.fuluwa.domain.order.model;

import java.util.Arrays;
import java.util.List;

public enum OrderState {

	DRAFT("草稿"), 
	CONFIRMED("已确认，待付款"), 
    PAID("已付款"), 
    COMPLETED("已完成"),
    CANCELLED("已取消");

    private String state;
    
    private OrderState(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }

    public static List<OrderState> getList() {
        return Arrays.asList(values());
    }

    public static void main(String[] args) {
		System.out.println(OrderState.DRAFT.toString());
	}
}
